home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp48hor1 / emulator.doc < prev    next >
Text File  |  1995-03-31  |  4KB  |  81 lines

  1. Author: Joe Horn.                            Written 18 Sept 1990 
  2.  
  3. The following is a brief review of the 41CV Emulator Card for the 
  4. HP 48SX.  Note: I only had a buggy beta version to play with, and 
  5. only had 24 hours to play with it, so this is sketchy. 
  6.  
  7. My biggest fear was that it would repeat the HP-71's 41 emulator's 
  8. mistakes, but it doesn't.  You CAN write new 41-code programs on the 
  9. 48, and you CAN list out the programs 41-style.  (The 71 couldn't do 
  10. either of these.)  On the 48, you merely type the 41 program into a 
  11. string, and press the ->41 menu key, and it gets compiled into a 
  12. Library Object for the Emulator to run.  If you want to, you can 
  13. also decompile it again by pressing ->TXT.  You needn't do so in 
  14. order to print out a listing, however; the Emulator contains the 
  15. same printer commands that the 41 IR Module and IL Module contain. 
  16.  
  17. But programs needn't be typed in; you can "print" a listing by the 
  18. 41's IR module, and the Emulator will capture it, automatically 
  19. decide whether it's a program, data, or status info, and compile it 
  20. accordingly.  Or you can use the dumb INPRT program (on the Emulator 
  21. card) to capture the listing and leave it as a string on the stack 
  22. so that you can edit it. 
  23.  
  24. Although the printer functions are supported, only a few Xfunctions 
  25. are supported (like SIZE? and PSIZE).  There is a way to extend the 
  26. Emulator's instruction set, so that things like REGSWAP and TIME 
  27. could be added.  No doubt a ToolKit of ready-to-use extensions will 
  28. become available, as Bill Wickes did for his HP-71 41 Emulator. 
  29.  
  30. The user interface is a work of art.  The entire stack plus lastx 
  31. are displayed at all times, but you can toggle a flag to force it 
  32. into single-line mode in case you REALLY want it to look just like 
  33. the 41.  The only 41 annunciator which isn't supported is BAT, but 
  34. the 48 has its own anyway.  The keyboard overlay looks frighteningly 
  35. like the 41, but adds a few menus (rah, rah) so that you don't have 
  36. to press "XEQ alpha BLAHBLAH alpha" as much as you need to on a real 
  37. 41.  There's even BEEP on shift 4!  It even supports automatic XEQ 
  38. for local labels, a handy feature they forgot to put into the 42S. 
  39.  
  40. I tried to port some of my programs from my trusty 41 to the 48, 
  41. but none of them worked, because they all contain XROM calls, and 
  42. the Emulator cannot understand those.  In desperation, I turned to 
  43. the Standard Pac Rom.  "FIN" ported flawlessly and got the same 
  44. results as the 41, but "BLACKJACK" ran differently.  It seems that 
  45. its random number generator produces a different sequence when it's 
  46. run to 12 digits instead of only 10. 
  47.  
  48. This hints at an important difference: the 41 and the 48 have very 
  49. different accuracy constraints.  41 software that depends on running 
  50. up against the accuracy wall will fail to run on the Emulator.  And 
  51. if a program runs for many loops or chains many calculations 
  52. together, the accumulated roundoff error could cause very different 
  53. answers. 
  54.  
  55. My biggest disappointment was the Emulator's lack of support for the 
  56. HP 42S.  Even though the 42 was painstakingly designed to mimick the 
  57. 41 in programming style (and even in internal codes), somebody made 
  58. the mistake of changing many function names.  For example, if you 
  59. type XEQ "CHS" into a program, it changes to +/-, and FACT changes 
  60. to N!.  All very nice, until you try to print a listing to the 
  61. 41 Emulator.  It only knows the 41 commands, not the new 42 ones! 
  62.  
  63. [Note: See HP42S on this disk for 42->41 translation!  -jkh-] 
  64.  
  65. A stroke of genius is the collection of 41-mode control commands 
  66. which you can use in 48 RPL programs.  You can set flags, SIZE, 
  67. registers, and other stuff, without even entering 41 mode.  It's 
  68. reminiscent of the FORTHX and BASICX commands on the HP-71 which let 
  69. you use FORTH commands inside BASIC programs, and vice versa. 
  70.  
  71. A combined effort of Hewlett Packard and Zengrange, the 41 Emulator 
  72. is a must for those who have a ton of 41 software containing few or 
  73. no XROM calls, and have no time to rewrite them all in 48 RPL.  But 
  74. for those who learn RPL and remember RPN, the Emulator would be 
  75. little more than a conversation piece. 
  76.  
  77. -- Joseph K. Horn -- (714) 858-0920 
  78.  
  79. [The opinions expressed above were my opinions when I wrote them 
  80. but are not necessarily still my opinions by time you read them.] 
  81.